class Phone:
    user = "ljh"

    def call(self):
        print("hello world")

class Phone2(Phone):  # 单继承，Phone2能够通过单继承直接在拥有Phone所有功能的情况下进行修改
    def calling(self):
        print("我的铃声是《人间惊鸿宴》")

phone = Phone2()
print(phone.user)
phone.call()
phone.calling()

class Phone3:
    company = "小米"
    boss = "雷军"
    user = "lx"

    def card(self):
        print("很好用")
class Phone4:
    def screen(self):
        print("亮度合适")

class Phone5(Phone,Phone3,Phone4):
    pass  # 通过pass进行内容的补充(略过)

Phonemax = Phone5()
print(Phonemax.user)
Phonemax.card()
Phonemax.screen()
print(Phonemax.company)
print(Phonemax.boss)